]> dgit.raspbian.org Git - gnome-shell.git/commit
status: Use fixed sorting of input sources on empty MRU
authorCarlos Garnacho <carlosg@gnome.org>
Wed, 14 Sep 2022 18:20:14 +0000 (20:20 +0200)
committerMarge Bot <marge-bot@gnome.org>
Sat, 17 Sep 2022 18:18:43 +0000 (18:18 +0000)
commit13c9fd2a668e137b9e2569dcdedb0a25b95ae9aa
tree3396c6d61f1fe7faeed83c45cf9f1f374386c8b2
parentc080bc59a4eac57756e3b1d92e33b88fc5b530c7
status: Use fixed sorting of input sources on empty MRU

When updating the MRU sources if there was no prior MRU, we want
to go with the unmodified list of sources in visibility order.

However iterating over object properties happens in an undetermined
order, so the initial MRU list ends up picking a value at random.

In order to prefer the sources list in the same order than they
appear in the menu if there was no prior MRU, order the keys
when accessing it and building the initial list of sources.

Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/5873
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2487>
js/ui/status/keyboard.js